<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>审计系统 - 内部控制测评报告</title>
		<link
			rel="stylesheet"
			href="{{ url_for('static', filename='css/style.css') }}"
		/>
	</head>
	<body>
		<div class="container">
			<div class="card report-card">
				<div class="text-center">
					<a
						href="{{ url_for('project_internal_controls', project_id=project_id) }}"
						class="btn"
						>返回测试列表</a
					>
				</div>
				<h2>内部控制测评报告</h2>
				<!-- <pre>{{ report }}</pre> -->
				<div id="markdown-content" class="markdown-body">{{ report|safe }}</div>
			</div>
		</div>
		<!-- 添加Markdown渲染支持 -->
		<script src="{{ url_for('static', filename='js/marked.min.js') }}"></script>
		<link
			rel="stylesheet"
			href="{{ url_for('static', filename='css/github-markdown.min.css') }}"
		/>

		<!-- <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> -->
		<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4.0.0/github-markdown.min.css"> -->
		<script>
			document.addEventListener('DOMContentLoaded', function () {
				const contentDiv = document.getElementById('markdown-content');
				contentDiv.innerHTML = marked.parse(contentDiv.textContent);
			});
		</script>
	</body>
</html>
